package cn.itbeien.payment.dao;

import cn.itbeien.entity.TradeOrderSeq;
import cn.itbeien.entity.TradeOrderSeqExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 支付流水订单dao
 */
public interface TradeOrderSeqMapper {
    long countByExample(TradeOrderSeqExample example);

    int deleteByExample(TradeOrderSeqExample example);

    int deleteByPrimaryKey(String tradeSeq);

    int insert(TradeOrderSeq row);

    /**
     * 新增支付订单流水数据，并对字段值做非空判断
     * @param row
     * @return
     */
    int insertSelective(TradeOrderSeq row);

    List<TradeOrderSeq> selectByExample(TradeOrderSeqExample example);

    TradeOrderSeq selectByPrimaryKey(String tradeSeq);

    int updateByExampleSelective(@Param("row") TradeOrderSeq row, @Param("example") TradeOrderSeqExample example);

    int updateByExample(@Param("row") TradeOrderSeq row, @Param("example") TradeOrderSeqExample example);

    int updateByPrimaryKeySelective(TradeOrderSeq row);

    int updateByPrimaryKey(TradeOrderSeq row);

    int updateStatusByOrderId(@Param("orderId")String orderId,@Param("status")String status);
}